﻿#ifndef WINDOWBASICCHNSWITCH_H
#define WINDOWBASICCHNSWITCH_H

#include <QWidget>
#include <QLabel>
#include <QPushButton>
#include <QResizeEvent>
#include <QVector>
#include <QGridLayout>
#include "chnswitch-tbar.h"
#include "chnswitch-unit.h"

#define MAX_CHN_UNIT_NUM 8
class WindowBasicChnSwitch : public QWidget
{
    Q_OBJECT
public:
    explicit WindowBasicChnSwitch(QWidget *parent = nullptr);
    void init_ctrl();
    void load_skin();
    void init_data();
signals:

public slots:
protected:
    void resizeEvent(QResizeEvent *event);
private:
    ChnSwitchTBar* ptr_chn_bar_;
    QVector<ChnSwitchUnit*> v_chn_units_;
    QGridLayout* grid_lay_;
};

#endif // WINDOWBASICCHNSWITCH_H
